<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>PintarOS: include/pintaros.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PintarOS
   </div>
   <div id="projectbrief">Operating System for Smart Card</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">pintaros.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="pintaros_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* define for maximum value */</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="code" href="pintaros_8h.html#a87f68e96fb938eddc39ad1f19d923a96">   11</a></span>&#160;<span class="preprocessor">#define MAX_DATA_SIZE   65535   </span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor"></span><span class="comment">/* Typedef Section Begin */</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50">   15</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">char</span>                    <a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50" title="unsigned integer 8-bit ">uint8_t</a>;        </div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="code" href="pintaros_8h.html#ad097ffa75536dc17a0039dfb3781d705">   16</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">short</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>      <a class="code" href="pintaros_8h.html#ad097ffa75536dc17a0039dfb3781d705" title="unsigned integer 16-bit ">uint16_t</a>;       </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="code" href="pintaros_8h.html#a435d1572bf3f880d55459d9805097f62">   17</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>            <a class="code" href="pintaros_8h.html#a435d1572bf3f880d55459d9805097f62" title="unsigned integer 32-bit ">uint32_t</a>;       </div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">/* Typedef Section End */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">/* Typedef Enum Section Begin */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">/* Typedef Enum Section End */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">/* Typedef struct Section Begin */</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html">   30</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;{</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#a8b56b308185f6f4d67a9e71eeecbb2a4">   32</a></span>&#160;        <a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50" title="unsigned integer 8-bit ">uint8_t</a>         <a class="code" href="structapdu__res__struct.html#a8b56b308185f6f4d67a9e71eeecbb2a4" title="Class of instruction. ">CLA</a>;                            </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#a45e72c0350687c473e0184cc97898011">   33</a></span>&#160;        <a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50" title="unsigned integer 8-bit ">uint8_t</a>         <a class="code" href="structapdu__res__struct.html#a45e72c0350687c473e0184cc97898011" title="Instruction code. ">INS</a>;                            </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#ac2bd2f173dec33aedefe14b9abab4102">   34</a></span>&#160;        <a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50" title="unsigned integer 8-bit ">uint8_t</a>         <a class="code" href="structapdu__res__struct.html#ac2bd2f173dec33aedefe14b9abab4102" title="Parameter 1. ">P1</a>;                             </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#a912708c4d4b304affb4c0e4b95d653cb">   35</a></span>&#160;        <a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50" title="unsigned integer 8-bit ">uint8_t</a>         <a class="code" href="structapdu__res__struct.html#a912708c4d4b304affb4c0e4b95d653cb" title="Parameter 2. ">P2</a>;                             </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#ab8309a32a5fa2c72b476076952b2c5c1">   36</a></span>&#160;        <a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50" title="unsigned integer 8-bit ">uint8_t</a>         cmd_data[<a class="code" href="pintaros_8h.html#a87f68e96fb938eddc39ad1f19d923a96" title="Maximum size for data section of APDU */. ">MAX_DATA_SIZE</a>];    </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#a95938a3507dd509b9521dadf4b19c689">   37</a></span>&#160;        <span class="keywordtype">int</span>             <a class="code" href="structapdu__res__struct.html#a95938a3507dd509b9521dadf4b19c689" title="length of command data ">cmd_data_len</a>;                   </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#a3b57ed648d723bd33661b8c9738a8ad3">   38</a></span>&#160;        <a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50" title="unsigned integer 8-bit ">uint8_t</a>         rsp_data[<a class="code" href="pintaros_8h.html#a87f68e96fb938eddc39ad1f19d923a96" title="Maximum size for data section of APDU */. ">MAX_DATA_SIZE</a>];        </div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#abea1e2327c56e7705b0a4d845392e6df">   39</a></span>&#160;        <span class="keywordtype">int</span>             <a class="code" href="structapdu__res__struct.html#abea1e2327c56e7705b0a4d845392e6df" title="length of response data ">rsp_data_len</a>;                   </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#aac5dc6f8e75db39295f3f7360510db28">   40</a></span>&#160;        <a class="code" href="response_8h.html#a0b9384277369e8c36725467bb40194d8" title="response type enumeration ">rspn_type</a>       <a class="code" href="structapdu__res__struct.html#aac5dc6f8e75db39295f3f7360510db28" title="response type code ">rspn</a>;                           </div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="structapdu__res__struct.html#a63dd56dfbd4de17b7c2240b452265fde">   41</a></span>&#160;        <a class="code" href="pintaros_8h.html#aaf0f0cca584c8202c7ee0f4a368bdd50" title="unsigned integer 8-bit ">uint8_t</a>         <a class="code" href="structapdu__res__struct.html#a63dd56dfbd4de17b7c2240b452265fde" title="extra parameter for response (SW2) if needed ">rsp_xtra_param</a>;                 </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;} <a class="code" href="structapdu__res__struct.html" title="structure of APDU resources ">apdu_res_struct</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">/* Typedef Struct Section End */</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/* Variabel Section Begin */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="pintaros_8h.html#a28bf060ef36a16e798dda0e06448b6c7">   48</a></span>&#160;<a class="code" href="structapdu__res__struct.html" title="structure of APDU resources ">apdu_res_struct</a>         <a class="code" href="command_8h.html#a28bf060ef36a16e798dda0e06448b6c7" title="apdu resources ">apdu_res</a>;                </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">/* Variabel Section End */</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">/* Function prototype Section Begin */</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">/*************/</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">/* Main Loop */</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">/*************/</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">/* Function prototype Section End */</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">/* File end*/</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jul 10 2013 16:42:56 for PintarOS by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
</small></address>
</body>
</html>
